using System;

namespace MirLda.BL.Objects
{
	/// <summary>
	/// PageListingObj - container for a paging information
	/// </summary>
	public class PageListingObj
	{
		#region fields

		private int _currentPage;
		private int _recordsOnPage;
		private int _totalRecords;

		#endregion

		#region properties

		public int CurrentPage{ get{ return _currentPage; } }
		public int RecordsOnPage{ get{ return _recordsOnPage; } }
		public int TotalRecords{ get{ return _totalRecords; } }

		internal int TotalRecordsInt{ set{ _totalRecords = value; } }

		#endregion

		#region constructor

		public PageListingObj( int currentPage ):this( currentPage, Implements.Implementations.GetConfigImpl().News_RecordsOnPage )
		{
			
		}

		public PageListingObj():this( 0, Implements.Implementations.GetConfigImpl().News_RecordsOnPage  )
		{
			
		}

		public PageListingObj( int currentPage, int recordsOnPage )
		{
			this._currentPage = currentPage;
			this._recordsOnPage = recordsOnPage;
		}
		#endregion
	}
}
